<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="test1"></div>
  <div id="test2"></div>
  <div id="test3"></div>

  <script src="./js/react.development.js"></script>
  <script src="./js/react-dom.development.js"></script>
  <script src="./js/babel.min.js"></script>
  <script type="text/babel">
    class Demo extends React.Component {
      render() {
        console.log(this)
        const { name, age, sex } = this.props
        return (
          <ul>
            <li>{name}</li>
            <li>{age}</li>
            <li>{sex}</li>
          </ul>
        )
      }
    }

    ReactDOM.render(<Demo name='张三' age='20' sex='男' />, document.getElementById('test1'))
    ReactDOM.render(<Demo name='李四' age='88' sex='女' />, document.getElementById('test2'))
    ReactDOM.render(<Demo name='王五' age='77' sex='男' />, document.getElementById('test3'))
  </script>

</body>

</html>